package com.xiaoniu.lib_keleim.pojo.dos;


import com.xiaoniu.lib_keleim.pojo.vos.UserInfoVO;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

public class UserEntity extends RealmObject {
    @PrimaryKey
    public long customerId;
    public String nickName;
    public String headPortraitUrl;

    public UserInfoVO do2vo(){
        UserInfoVO.getSingleton().customerId = customerId;
        UserInfoVO.getSingleton().nickName = nickName;
        UserInfoVO.getSingleton().headPortraitUrl = headPortraitUrl;
        UserInfoVO.getSingleton().isLogin = true;

        return UserInfoVO.getSingleton();
    }
}
